package senpec.qc.harmony.system.role;

import org.apache.ibatis.annotations.Mapper;
import senpec.qc.harmony.base.mybatisplus.IBaseMapper;

import java.util.List;


@Mapper
//@CacheNamespace
public interface RoleMapper extends IBaseMapper<Role> {

    List<Long> selectRoleIdsByUserId(Long userId);

    int insertUserIdAndRoleId(Long userId, Long roleId);

    int deleteUserIdAndRoleId(Long userId, Long roleId);

    List<String> getRoleNameListByUserId(Long userId);
}